﻿@model Inscriptionem.Models.Views.RemindChangeViewModel

@{
    ViewBag.Title = Inscriptionem.Configuration.Configuration.Instance.General.Title + " » Change password";
    Layout = "Layout.cshtml";


    string message = string.Empty;

    switch (Model.Error)
    {
        case Inscriptionem.Models.Enums.RemindChangeError.None:
            {
                break;
            }
        case Inscriptionem.Models.Enums.RemindChangeError.PasswordEmpty:
            {
                message = "Please enter password.";
                break;
            }
        case Inscriptionem.Models.Enums.RemindChangeError.PasswordLength:
            {
                message = "Please enter password, that 6 characters or longer.";
                break;
            }
        case Inscriptionem.Models.Enums.RemindChangeError.PasswordNotMatched:
            {
                message = "Passwords does not match.";
                break;
            }
        case Inscriptionem.Models.Enums.RemindChangeError.Other:
            {
                message = "Unknown error occurred, please try again.";
                break;
            }
    }
}
<div class="outer" id="contentwrap">
    <div class="postcont">
		<div id="content">	
			<div class="post type-post status-publish format-standard hentry">
				<h2 class="title" style="text-align: center;">Change password</h2>
			</div>
            <div class="postdate-single login-error">@message</div>
            <div class="postdate-single">
                <form action="/@(Model.Language)/Login/RemindChange" method="POST">
                    <input type="hidden" name="Mail" value="@Model.Mail" />
                    <input type="hidden" name="GUID" value="@Model.GUID" />
                    <div style="float:left; width:40%; text-align: right;">
                        <p class="login-paragraph">New Password</p>
                        <p class="login-paragraph">Confirm New Password</p>
                    </div>
                    <div>
                        <p class="login-paragraph"><input type="password" name="Password" class="login-input"/></p>
                        <p class="login-paragraph"><input type="password" name="PasswordConfirmation" class="login-input"/></p>
                    </div>
                    <div class="clear"></div>
                    <div class="login-buttons"><input type="reset" value="Reset"/>&nbsp|&nbsp;<input type="submit" value="Change"/></div>
                </form>
            </div>
		</div>
    </div>
</div>